package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.MessageModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.message.MessageContract;

import dagger.Module;
import dagger.Provides;

@Module
public class MessageModule {

    private MessageContract.SearchView searchView;

    public MessageModule(MessageContract.SearchView searchView) {
        this.searchView = searchView;
    }

    @Provides
    @ActivityScope
    public MessageContract.SearchView providerSearchView() {
        return searchView;
    }

    @ActivityScope
    @Provides
    public MessageContract.Model providerModel(MessageModel model) {
        return model;
    }

}
